package com.yvon.maple.service.msg.core.service;

import com.yvon.boot.mybatis.IBaseService;
import com.yvon.maple.service.msg.core.model.entity.ImConsumer;

import java.util.Set;

/**
 * @author : Yvon
 * @since : 2021-08-26
 */
public interface ImConsumerService extends IBaseService<ImConsumer> {

    /**
     * 保存.
     *
     * @param messageId the message id
     * @param consumers the consumers
     * @return boolean
     * @author : Yvon / 2021-08-26
     */
    boolean save(Long messageId, Set<String> consumers);

    /**
     * 设置已读.
     *
     * @param consumerIds the consumer ids
     * @return boolean
     * @author : Yvon / 2021-08-26
     */
    boolean markRead(Set<Long> consumerIds);

    /**
     * 设置未读.
     *
     * @param consumerIds the consumer ids
     * @return boolean
     * @author : Yvon / 2021-08-26
     */
    boolean markUnRead(Set<Long> consumerIds);
}
